<p-dataTable [value]="scheduleDatas" [responsive]="true" id="malfunctionTable">

    <p-column selectionMode="multiple" ></p-column>
    <p-column field="kid" header="知识编号" [sortable]="true">
        <ng-template let-data="rowData" pTemplate="operator">
            <span (click)="onOperate(data)" class="ui-cursor-point">{{data.kid}}</span>
        </ng-template>
    </p-column>
    <p-column field="classify" header="知识分类" [sortable]="true"></p-column>
    <p-column field="title" header="标题" [sortable]="true"></p-column>
    <p-column field="create_name" header="创建人" [sortable]="true"></p-column>
    <p-column field="create_time" header="创建时间" [sortable]="true"></p-column>
    <p-column field="status" header="状态" [sortable]="true"></p-column>
    <p-column field="color" header="操作" [style]="{'width':'18vw'}">
        <ng-template let-data="rowData" pTemplate="operator">
            <app-btn-approval [data]="data" [type]="searchType"></app-btn-approval>
            <app-btn-delete [data]="data"></app-btn-delete>
            <app-btn-edit [data]="data" [type]="searchType"></app-btn-edit>
            <app-btn-release [data]="data" [type]="searchType"></app-btn-release>
            <app-btn-review [data]="data" [type]="searchType"></app-btn-review>
        </ng-template>
    </p-column>
    <ng-template pTemplate="emptymessage">
        当前没有数据
    </ng-template>
</p-dataTable>
<p-paginator rows="10" totalRecords="{{total}}" [rowsPerPageOptions]="[10,20,30]" pageLinkSize="3"  (onPageChange)="paginate($event)"></p-paginator>